package Math;

public class _789_EscapeTheGhosts {
    public boolean escapeGhosts(int[][] ghosts, int[] target) {
        int distance = Math.abs(target[0]) + Math.abs(target[1]);
        for (int[] ghost : ghosts) {
            if (distance >= (Math.abs(target[0] - ghost[0]) + Math.abs(target[1] - ghost[1]))) {
                return false;
            }
        }
        return true;
    }
}
